home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / moreosl / morenavigation / morenavigation.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.5 KB  |  52 lines

  1. /*
  2.     File:        MoreNavigation.h
  3.  
  4.     Contains:    Basic Navigation services utilities functionality.
  5.  
  6.     Written by:    Quinn
  7.  
  8.     Copyright:    Copyright © 2000 by Apple Computer, Inc., all rights reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <1>     20/3/00    Quinn   First checked in.
  21. */
  22.  
  23. #pragma once
  24.  
  25. /////////////////////////////////////////////////////////////////
  26.  
  27. // MoreIsBetter Setup
  28.  
  29. #include "MoreSetup.h"
  30.  
  31. // Mac OS Interfaces
  32.  
  33. #include <Files.h>
  34. #include <Navigation.h>
  35.  
  36. /////////////////////////////////////////////////////////////////
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41.  
  42. extern pascal OSStatus MoreNavExtractSingleReply(const NavReplyRecord *reply, FSSpec *target);
  43.     // This routine extracts a single FSSpec from the selection
  44.     // in the reply record.  It also normalises that FSSpec
  45.     // to avoid Nav's broken ‘name is empty’ FSSpec's.  This
  46.     // is boilerplate code required by all Nav clients that use
  47.     // the save dialog.
  48.  
  49. #ifdef __cplusplus
  50. };
  51. #endif
  52.